<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<base th:href="@{/}">
	<meta charset="utf-8">
	<title></title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="static/layui/css/layui.css" media="all" />
	<script type="text/javascript" src="static/plugin/jquery/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="static/layui/layui.js"></script>
</head>
<body class="layui-fluid">
	<div class="layui-row" style="margin-top: 5px;">
		<div class="layui-col-md12">
			<table id="table" class="layui-table" lay-filter="table"></table>
		</div>
	</div>
</body>
<script type="text/javascript" th:inline="javascript">
	var workOrder = [[${workOrder}]];
	var processCode = [[${processCode}]];
	layui.use(['form','layer','jquery','table','laydate'],function() {
		var form = layui.form,
			layer = layui.layer,
			$ = layui.jquery,
			table = layui.table,
			laydate = layui.laydate;

		table.render({
			elem: '#table'
			,title: '列表'
			,url: '/manage/product_data/equipment_detail'
			,method:'post'
			,where: {workOrder: workOrder, processCode: processCode}
			,page: true //开启分页
			,limit: 20
			,limits: [20, 30, 40, 50, 60, 70, 80, 90, 100]
			,cols: [
			[
				{type:'numbers', title:'序号'}
				,{field: 'equipmentCode', title: '设备编码'}
				,{field: 'month', title: '月份'}
			]
			]
			,text: {
				none: '暂无相关数据' //默认：无数据。注：该属性为 layui 2.2.5 开始新增
			}
			,defaultToolbar: ['']
		});
	})
</script>
</html>